

package com.ylbh.modules.job.task;

import com.ylbh.modules.goods.service.ShoppingGoodsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 新品上架状态更改
 * @author mgh
 */
@Component("newGoodsTask")
public class NewGoodsTask implements ITask {
	private Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	private ShoppingGoodsService shoppingGoodsService;

	@Override
	public void run(String params) {
		logger.info("新品上架状态更改定时任务开启");
		shoppingGoodsService.modifyIsNewByAddTime();
		logger.info("新品上架状态更改定时任务执行结束");
	}
}
